const { devtool } = require("../webpack.config");
const { plugin } = require("./webpack.prod.config");


const { merge } = require('webpack-merge');
const comminConfig = require('./webpack.common.config');

module.exports = merge(comminConfig, {
    mode:"development",
    devtool:"source-map",
     devServer :{

        //当不能在内存中获取指定资源，从contentBase指定的路径中访问
        contentBase:"./public",
        //模块热替换 与 targer:"web" 同时打开
        hot:true,
        //host:"0.0.0.0",
       // port:3311,
        open:true,
       // compress:true
        proxy:[
            {
                context: ['/proxy'],
                target: 'http://localhost:8088',
                secure: false,
                changeOrigin:true
              },
        ]
        
        
    },
}) 